﻿<%@ page language="C#" autoeventwireup="true" inherits="NewUser, App_Web_auj33ags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Welcome to XPSTUDIO 新用户注册</title>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/reset.css" rel="stylesheet" type="text/css" />
    <link href="css/2col.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function reloadcode(){ document.getElementById("vcode").src ="ValidateCode.aspx";}
    </script>
    
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
    <div id="menu" class="box">
    <ul class="box">
      <li id="menu-active"><a href="Default.aspx"><span>首页</span></a></li>
      <!-- Active -->
      <li><a href="MyWorkPlatform.aspx"><span>工作日志</span></a></li>
      <li><a href="MyProjects.aspx"><span>项目管理</span></a></li>
      <li><a href="MyDocs.aspx"><span>技术资料</span></a></li>
      <li><a href="MyDatabase.aspx"><span>数据库文档</span></a></li>
    </ul>
    </div>
    <hr class="noscreen" />
    <div id="cols">
    <div id="aside" class="box">
    <div id="padding box">
        <p id="logo"><a href="#"><img src="images/logo.jpg" alt="XPStudio" /></a></p>
        </div>
    </div>
    <hr class="noscreen" />
    <div id="content" class="box">
    <h1>新用户注册 User Register</h1>
        <table>
            <tr>
                <td>用户名：
                </td>
                <td><asp:TextBox runat="server" ID="txtUserName" TextMode="singleLine" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                        ErrorMessage="请输入您的用户名"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>密码：
                </td>
                <td><asp:TextBox runat="server" ID="txtPassword" TextMode="password" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入密码" ControlToValidate="txtPassword"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>确认密码：
                </td>
                <td><asp:TextBox runat="server" ID="txtPassword2" TextMode="password" />
                </td>
                <td>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" Display="Dynamic" ErrorMessage="密码不一致！" ControlToCompare="txtPassword" ControlToValidate="txtPassword2"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td>Email：
                </td>
                <td><asp:TextBox runat="server" ID="txtEmail" TextMode="singleLine" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <TR><TD>性别</TD><TD><asp:DropDownList id="ddlGender" runat="server" Width="70px">
                      <asp:ListItem Value="0">未知</asp:ListItem>
                      <asp:ListItem Value="1">男</asp:ListItem>
                      <asp:ListItem Value="2">女</asp:ListItem>
                  </asp:DropDownList></TD><TD></TD></TR>
            <tr>
                <td>密码提示问题：
                </td>
                <td><asp:TextBox runat="server" ID="txtQuestion" TextMode="singleLine" />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>提示问题答案：
                </td>
                <td><asp:TextBox runat="server" ID="txtAnswer" TextMode="singleLine" />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>验证码：
                </td>
                <td><asp:TextBox runat="server" ID="txtSalt" TextMode="singleLine" />
                <asp:TextBox runat="server" ID="txtSalt2" TextMode="singleLine"  Visible ="false"/>
                </td>
                <td><img id="vcode" src="ValidateCode.aspx" alt="点击刷新" />
                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txtSalt2"
                        ControlToValidate="txtSalt" ErrorMessage="CompareValidator"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="btnAdd" runat="server" Text="注册" OnClick="btnAdd_Click" />
                </td>
                
            </tr>
        </table>
         <p class="msg info">如果您已经注册， 请点击<a href="UserLogin.aspx">登录页面进行登录</a></p>
    </div>
    </div>
  <!-- Footer -->
  <div id="footer" class="box">
    <p class="f-left">&copy; 2009 <a href="http://xpstudio.whcdc.org">XPStudio 小鹏工作室</a>, All Rights Reserved &reg;</p>
    <p class="f-right"><a href="http://jigsaw.w3.org/css-validator/">CSS</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> </p>
  </div>
  <!-- /footer -->
    </div>
    </form>
</body>
</html>
